<template>
	<view class="">
		<view  style="padding-left: 60rpx;" class="d-flex flex-d" >
			<view class="py-10 zhekou" v-for="(item,index) in zk" :key='index' @tap='zekou(index,item)'>
				<text class="mr-20" :class="actve==index?'actve':''">{{item.title}}</text>
				<u-icon  v-if="actve==index" name="checkmark" color="#FF890B" size="28"></u-icon>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data(){
			return {
				actve:0,
				zk:[
					{
						flag1:'',
						flag2:'',
						title:'全部折扣',
						type:3
					},
					{
						flag1:'3',
						flag2:'4',
						title:'3-4折',
						type:3
					},
					{
						flag1:'4',
						flag2:'5',
						title:'4-5折'
					},
					{
						flag1:'5',
						flag2:'6',
						title:'5-6折',
						type:3
					},
					{
						flag1:'6',
						flag2:'7',
						title:'6-7折',
						type:3
					},
					{
						flag1:'7',
						flag2:'8',
						title:'7-8折',
						type:3
					},
					{
						flag1:'8',
						flag2:'10',
						title:'8折以上',
						type:3
					},
				],
			}
		},
		methods:{
			zekou(index,item){
				if(this.actve==index)return
				this.actve=index
				this.$emit('zekou',item)
			},
			deleteZk(){
				this.actve=0
			}
		}
	}
</script>

<style>
</style>
